const windowInfoAddon = require("./build/Release/windowInfoAddon");

function delay(time = 1000) {
  return new Promise(function (resolve) {
    setTimeout(() => {
      resolve(true);
    }, time);
  });
}
(async function () {
  while (true) {
    await delay(1000)
    windowInfoAddon.getActiveWindowInfo((str) => {
      console.log(str);
    });
  }
})();
